#!/usr/bin/env ruby
#
# pwcrack-framework
# Author L
#

Version = '1.9.9'
Project = 'pwcrack-framework'

ROOT = File.dirname(File.realpath(__FILE__))

# load lib
require_relative 'lib/env'
require_relative 'lib/str_ext'
require_relative 'lib/cli'
require_relative 'lib/core'

# load all plugins
Dir["#{ROOT}/plugins/*.rb"].each do |plugin|
  require_relative plugin
end

# commandline 
passwd, opts = CLI.commandline!

# start
PWCrack.set(opts)
PWCrack.crack(passwd)
